package com.woniu.woniu_bx.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;

/**
 * @author:GuoHai
 * @program: IntelliJ IDEA
 * @data: 2022/8/29 16:18
 */
public interface RoleMenuMapper {
    @Insert("insert into bx_role_menu values(#{role_id},#{menu_id})")
    void add(@Param("role_id")int roleId,@Param("menu_id")int menuId);

    @Delete("delete from bx_role_menu where role_id=#{role_id}")
    void del(int roleId);
}
